package com.design.bridge.file;

// 本地硬盘存储介质实现类
class LocalDisk extends StorageMedium {
    public LocalDisk(FileSystem fileSystem) {
        super(fileSystem);
    }

    @Override
    public void storeFile(String fileName, String content) {
        System.out.println("Storing file on local disk: " + fileName);
        fileSystem.writeFile(fileName, content);
    }

    @Override
    public String retrieveFile(String fileName) {
        System.out.println("Retrieving file from local disk: " + fileName);
        return fileSystem.readFile(fileName);
    }
}